Optimal. Leaf size=28 \[ \frac {x}{a}+\frac {\cot (c+d x)}{d (a+a \csc (c+d x))} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {3862, 8}
\begin {gather*} \frac {\cot (c+d x)}{d (a \csc (c+d x)+a)}+\frac {x}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3862
Rubi steps
\begin {align*} \int \frac {1}{a+a \csc (c+d x)} \, dx &=\frac {\cot (c+d x)}{d (a+a \csc (c+d x))}+\frac {\int a \, dx}{a^2}\\ &=\frac {x}{a}+\frac {\cot (c+d x)}{d (a+a \csc (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 47, normalized size = 1.68 \begin {gather*} \frac {c+d x-\frac {2 \sin \left (\frac {1}{2} (c+d x)\right )}{\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )}}{a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.06, size = 37, normalized size = 1.32
method | result | size |
risch | \(\frac {x}{a}+\frac {2}{d a \left (i+{\mathrm e}^{i \left (d x +c \right )}\right )}\) | \(29\) |
derivativedivides | \(\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {4}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2}}{a d}\) | \(37\) |
default | \(\frac {2 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\frac {4}{2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )+2}}{a d}\) | \(37\) |
norman | \(\frac {\frac {x}{a}+\frac {x \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a}-\frac {2 \tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}}{\tan \left (\frac {d x}{2}+\frac {c}{2}\right )+1}\) | \(52\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.46, size = 50, normalized size = 1.79 \begin {gather*} \frac {2 \, {\left (\frac {\arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac {1}{a + \frac {a \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}}\right )}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.55, size = 54, normalized size = 1.93 \begin {gather*} \frac {d x + {\left (d x + 1\right )} \cos \left (d x + c\right ) + {\left (d x - 1\right )} \sin \left (d x + c\right ) + 1}{a d \cos \left (d x + c\right ) + a d \sin \left (d x + c\right ) + a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {1}{\csc {\left (c + d x \right )} + 1}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 32, normalized size = 1.14 \begin {gather*} \frac {\frac {d x + c}{a} + \frac {2}{a {\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right ) + 1\right )}}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 27, normalized size = 0.96 \begin {gather*} \frac {x}{a}+\frac {2}{a\,d\,\left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________